tests/ci-commitmessage-submodules.sh: fix for RHCI
authorJonathan Lebon <jlebon@redhat.com>
Fri, 12 May 2017 18:14:22 +0000 (14:14 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 12 May 2017 21:02:16 +0000 (21:02 +0000)
commit5811d4e8a3af4196f65f8dd5353c18227a79f992
tree1949a64feab86ae194f07010f5a68695d4042187
parenta195888b0f74ae3739a1a18fc46d39ae4686c5aa
tests/ci-commitmessage-submodules.sh: fix for RHCI

Special-case when this script is run under RHCI, which will try to fetch
the merge commit if possible. Use RHCI_COMMIT instead to refer to the
actual PR/branch HEAD being evaluated.

Use realpath to workaround the developer's git dir being in a symbolic
link.

Closes: #857
Approved by: cgwalters
tests/ci-commitmessage-submodules.sh